<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格</title>
    <style>
        table {
            width: 400px;
            text-align: center;
        }

        table, 
        table td, 
        table th{
            border: 1px solid #444;
            border-collapse: collapse;
        }
    </style>
</head>
<body>
    <div>
        <table>
            <!-- 表名 -->
            <caption>信息表</caption>
            <!-- 表头 -->
            <thead>
                <tr>
                    <th>序号</th>
                    <th>姓名</th>
                    <th>年龄</th>
                    <th>性别</th>
                </tr>
            </thead>
            <!-- 表体 -->
            <tbody>
                <tr>
                    <td>1</td>
                    <td>张三</td>
                    <td>20</td>
                    <td>男</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>李四</td>
                    <td>18</td>
                    <td>女</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>王五</td>
                    <td>22</td>
                    <td>男</td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>